
var p = new Promise((resolve,reject) => {

    resolve('ok')
    reject( ' error')

})


p.then(value=> {
	console.log('p1 value =>', value)
}, reason => {
	console.warn('p1 reason =>', reason)
})


p.then(value=> {
	console.log('p2 value =>', value)
}, reason => {
	console.warn('p2 reason =>', reason)
}).then(value=> {
	console.log('then1 value =>', value)
}, reason => {
	console.warn('then1 reason =>', reason)
})



p.then(value=> {
	console.log('p3 value =>', value)
}, reason => {
	console.warn('p3 reason =>', reason)
}).then(value=> {
	console.log('then2 value =>', value)
}, reason => {
	console.warn('then2 reason =>', reason)
})



